package com.bus.core.events.order;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageProperties;
import org.springframework.context.ApplicationListener;

@Slf4j
public class OrderRemoteEventListener implements ApplicationListener<OrderRemoteEvent> {
    @Override
    public void onApplicationEvent(OrderRemoteEvent event) {
        log.info("事件的订单号= " + event.getOrderNo());
        log.info("根据产品id 处理业务 1  ");

    }
}
